<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE jsp>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>GrowingTree</title>
    <link rel="stylesheet" type="text/css" href="all/lib/bootstrap/css/bootstrap.css">  
    <link rel="stylesheet" type="text/css" href="all/stylesheets/theme.css">
    <link rel="stylesheet" href="all/lib/font-awesome/css/font-awesome.css">
    <script src="all/lib/jquery-1.7.2.min.js" type="text/javascript"></script>
    <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .brand { font-family: georgia, serif; }
        .brand .first {
            color: #ccc;
            font-style: italic;
        }
        .brand .second {
            color: #fff;
            font-weight: bold;
        }
    </style>
    <link rel="shortcut icon" href="../assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
  </head>
 <body class="">
  <script type="text/javascript">
   function checkValidate() 
   { 
    if(document.messageform.campusInformationTitle.value=="") 
    { 
      window.alert("标题不能为空！！！"); 
      return false; 
    } 
	if(document.messageform.campusInformationDate.value=="") 
    { 
      window.alert("请选择日期！！！"); 
      return false; 
    } 
  	if(document.messageform.campusInformationContent.value=="") 
    { 
      window.alert("内容不能为空！！！"); 
      return false; 
    }
    if(document.messageform.campusInformationTitle.value!=null &&document.messageform.campusInformationDate.value!=null &&document.messageform.campusInformationContent.value!=null)  
	  window.alert("成功发布通知！！！"); 
      return true; 
	} 
</script>       
  <div class="navbar">
        <div class="navbar-inner">
                <ul class="nav pull-right">
                   
                    <li><a href="#" class="hidden-phone visible-tablet visible-desktop" role="button">设置</a></li>                 
                </ul>
                <a class="brand" href="index.jsp"><span class="first">Growing</span> <span class="second">Tree</span></a>
        </div>
    </div>
    <div class="sidebar-nav">
                    <li id="fat-menu" class="dropdown">
                        <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user"></i> 管理员已登录   <%=session.getAttribute("loginName") %>				               
                        </a>
						<a href="login.jsp">注销</a>      
		<a href="#index-menu" class="nav-header" data-toggle="collapse"></a>
		<a href="index.jsp"  class="nav-header"> 
		<i class="icon-dashboard"></i>首页</a> 
              
        <a href="#manage-menu" class="nav-header" data-toggle="collapse"><i class="icon-dashboard"></i>系统管理</a>
        <ul id="manage-menu" class="nav nav-list collapse in">          
            <li ><a href="/GrowingTree/teachers">老师管理</a></li>
            <li ><a href="/GrowingTree/parents">家长管理</a></li>
            <li ><a href="/GrowingTree/classes">班级管理</a></li>
        </ul>
		<a href="#message-menu" class="nav-header" data-toggle="collapse">
		<i class="icon-dashboard"></i>通知管理</a>
        <ul id="message-menu" class="nav nav-list collapse in">           
            <li ><a href="school-message.jsp">校方通知</a></li>                   
        </ul>		
        <a href="#accounts-menu" class="nav-header" data-toggle="collapse"></a>       
        <a href="reset-password.jsp" class="nav-header">
		<i class="icon-briefcase"></i>重置密码</a>
      

        <a href="#help-menu" class="nav-header" data-toggle="collapse"></a>
		<a href="help.jsp" class="nav-header" >
		<i class="icon-question-sign"></i>帮助</a> </div>
    <div class="content">      
        <div class="header">
            <h1 class="page-title">校方通知</h1>
        </div>      
          <ul class="breadcrumb">
            <li><a href="index.jsp">管理</a> <span class="divider">/</span></li>
            <li class="active">校方通知</li>
        </ul>
	 <form action="campusInformation" method="post" name="messageform">
	 <table align="center" border=1;>
	 <tr>
		<td style="width: 85px; height:30px" align="right" >标      题：</td>
		<td><input type="text" name="campusInformationTitle" style="width: 321px; height: 37px"></td>
	</tr>
	<tr>
	<td style="width: 85px; height: 30px" align="right">发布时间：</td>
		<td><input type="date" name="campusInformationDate" style="height: 37px; width: 321px"/></td>
	</tr>
	<tr>
		<td colspan=2><textarea style="width: 424px; height: 202px" name="campusInformationContent"></textarea></td>
	</tr>
	<tr>
		<td colspan=2 align="center" style="height: 43px; "><input type="submit" onClick="return checkValidate();" value="确认" style="width: 130px; " >  <input type="reset" value="重置" style="width: 130px; "></td>
	</tr>
	</table>
	</form>
    <script src="all/lib/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
        });
    </script>
    
  </body>
</html>
